<div class="rich_media_content " id="js_content">


    <section class="xmteditor" style="display:none;" data-tools="&#26032;&#23186;&#20307;&#31649;&#23478;"
             data-label="powered by xmt.cn"></section>
    <section class="" data-mpa-template-id="1286343" data-mpa-color="null" data-mpa-category="fav"
             style="max-width: 100%;color: rgb(51, 51, 51);">
        <section class="" data-mpa-template-id="1245355" data-mpa-color="null" data-mpa-category="fav"
                 style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;">
            <section data-mpa-template="t" class=""
                     style="max-width: 100%;font-size: medium;box-sizing: border-box !important;word-wrap: break-word !important;">
                <section data-role="outer" label="Powered by 135editor.com"
                         style="max-width: 100%;color: rgb(51, 51, 51);letter-spacing: 0.544px;text-align: justify;white-space: normal;background-color: rgb(255, 255, 255);font-size: 16px;font-family: &#24494;&#36719;&#38597;&#40657;;box-sizing: border-box !important;overflow-wrap: break-word !important;">
                    <section class="" data-tools="135&#32534;&#36753;&#22120;" data-id="91525"
                             style="max-width: 100%;box-sizing: border-box;border-width: 0px;border-style: none;border-color: initial;overflow-wrap: break-word !important;">
                        <section
                                style="margin: 8px;padding: 10px 20px 10px 10px;max-width: 100%;box-sizing: border-box;overflow-wrap: break-word !important;display: flex;justify-content: center;align-items: center;box-shadow: rgb(221, 221, 221) 2px 2px 8px;border-radius: 10px;">
                            <section
                                    style="max-width: 100%;width: 125px;box-sizing: border-box !important;overflow-wrap: break-word !important;">
                                <img class="" data-ratio="1"
                                     data-src="https://mmbiz.qpic.cn/mmbiz_jpg/5mt0ewv9OS3EJ7iabujHI4SiagL8601qeXANAsibApkoTDXibppvtIvYiaSGWib4guroUQgJRWBz9YDYZS0ic6Coylbjw/640?wx_fmt=jpeg"
                                     data-type="jpeg" data-w="640" data-width="100%"
                                     style="display: block;box-sizing: border-box !important;overflow-wrap: break-word !important;visibility: visible !important;width: 640px !important;"
                                     title="undefined" width="640px"></section>
                            <section data-width="100%"
                                     style="padding-right: 0.8em;padding-left: 0.8em;max-width: 100%;box-sizing: border-box;width: 477.859px;overflow-wrap: break-word !important;">
                                <p style="max-width: 100%;min-height: 1em;font-size: 15px;color: rgb(62, 63, 63);line-height: 1.5em;box-sizing: border-box !important;overflow-wrap: break-word !important;">
                                    &#25968;&#25454;&#31185;&#23398;&#20465;&#20048;&#37096;</p>
                                <p style="margin-top: 5px;max-width: 100%;min-height: 1em;font-size: 13px;color: rgb(165, 165, 165);line-height: 1.5em;box-sizing: border-box !important;overflow-wrap: break-word !important;">
                                    &#20013;&#22269;&#25968;&#25454;&#31185;&#23398;&#23478;&#31038;&#21306;</p>
                            </section>
                            <section
                                    style='max-width: 100%;background-image: url("https://mmbiz.qpic.cn/mmbiz_gif/5mt0ewv9OS3EJ7iabujHI4SiagL8601qeX4E4nJcGfX0RSqV7cvvpfbfX4hGbaY1z3cML5Eyvibr3YqaozA6eKQibw/640?wx_fmt=gif");width: 80px;height: 36px;background-size: 100%;display: inline-block;background-repeat: no-repeat;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;'>
                                <section
                                        style="max-width: 100%;box-sizing: border-box;vertical-align: middle;display: inline-block;overflow-wrap: break-word !important;">
                                    <img class="" data-ratio="1"
                                         data-src="https://mmbiz.qpic.cn/mmbiz_jpg/5mt0ewv9OS3EJ7iabujHI4SiagL8601qeX1NI8DHic67qH7Rwmu1xDJRnuVWopKt9msLu2HpOiaQIx4Swl6JFicNPng/640?wx_fmt=jpeg"
                                         data-type="jpeg" data-w="344" data-width="100%"
                                         style="box-sizing: border-box;mix-blend-mode: soft-light;vertical-align: middle;overflow-wrap: break-word !important;visibility: visible !important;width: 344px !important;"
                                         title="undefined" width="344px"></section>
                            </section>
                        </section>
                    </section>
                </section>
            </section>
        </section>
    </section>
    <p style="text-align: center;"><br></p>
    <p style="max-width: 100%;min-height: 1em;"><span style="font-size: 14px;color: rgb(0, 0, 0);">&#26412;&#31687;&#23558;&#32487;&#32493;&#19978;&#19968;&#31687;&#25968;&#25454;&#20998;&#26512;<a
            href="http://mp.weixin.qq.com/s?__biz=MzAxMjUyNDQ5OA==&amp;mid=2653557618&amp;idx=1&amp;sn=53ad0e49599403e2bf8bbcb20308bbec&amp;chksm=806e3dcfb719b4d945f54aa2ffca692c5cde0c1b357bf99a83600dec9176e07291ecd61506b3&amp;scene=21#wechat_redirect"
            target="_blank">&#29992;Python&#20998;&#26512;&#21271;&#20140;&#20108;&#25163;&#25151;&#25151;&#20215;</a>&#20043;&#21518;&#36827;&#34892;&#25968;&#25454;&#25366;&#25496;&#24314;&#27169;&#39044;&#27979;&#65292;&#36825;&#20004;&#37096;&#20998;&#26500;&#25104;&#20102;&#19968;&#20010;&#31616;&#21333;&#30340;&#23436;&#25972;&#39033;&#30446;&#12290;&#32467;&#21512;&#20004;&#31687;&#25991;&#31456;&#36890;&#36807;&#25968;&#25454;&#20998;&#26512;&#21644;&#25366;&#25496;&#30340;&#26041;&#27861;&#21487;&#20197;&#36798;&#21040;&#20108;&#25163;&#25151;&#23627;&#20215;&#26684;&#39044;&#27979;&#30340;&#25928;&#26524;&#12290;</span>
    </p>
    <p style="max-width: 100%;min-height: 1em;"><span style="font-size: 14px;color: rgb(0, 0, 0);"><br></span></p>
    <p style="max-width: 100%;min-height: 1em;"><span style="font-size: 14px;color: rgb(0, 0, 0);">&#19979;&#38754;&#20174;&#29305;&#24449;&#24037;&#31243;&#24320;&#22987;&#35762;&#36848;&#12290;</span>
    </p>
    <p style="max-width: 100%;min-height: 1em;"><span style="color: rgb(83, 78, 78);font-size: 14px;"></span></p>
    <section class="" data-role="outer" label="Powered by 365editor"
             style="max-width: 100%;color: rgb(51, 51, 51);letter-spacing: 0.544px;text-align: justify;white-space: normal;background-color: rgb(255, 255, 255);font-size: 16px;font-family: &#24494;&#36719;&#38597;&#40657;;box-sizing: border-box !important;word-wrap: break-word !important;">
        <section
                style="margin-top: 5px;margin-bottom: 5px;max-width: 100%;box-sizing: border-box;clear: both;border-width: 0px;border-style: none;border-color: initial;word-wrap: break-word !important;">
            <section
                    style="max-width: 100%;box-sizing: border-box;border-top: 2.5px solid rgb(35, 88, 186);border-right-color: rgb(35, 88, 186);border-bottom-color: rgb(35, 88, 186);border-left-color: rgb(35, 88, 186);font-size: 1em;font-weight: inherit;text-decoration: inherit;color: rgb(255, 255, 255);word-wrap: break-word !important;">
                <section
                        style="margin-top: 2px;max-width: 100%;box-sizing: border-box;border-width: 0px;border-style: initial;border-color: rgb(35, 88, 186);overflow: hidden;color: inherit;word-wrap: break-word !important;">
                    <section
                            style="max-width: 100%;box-sizing: border-box;display: inline-block;font-size: 1em;font-family: inherit;font-weight: inherit;text-align: inherit;text-decoration: inherit;color: inherit;border-color: rgb(35, 88, 186);word-wrap: break-word !important;">
                        <section
                                style="padding: 5px 10px;max-width: 100%;display: inline-block;line-height: 1.4em;height: 32px;vertical-align: top;font-family: inherit;font-weight: bold;float: left;color: inherit;border-color: rgb(212, 43, 21);background: rgb(35, 88, 186);box-sizing: border-box !important;word-wrap: break-word !important;">
                            &#29305;&#24449;&#24037;&#31243;
                        </section>
                        <section
                                style="max-width: 100%;display: inline-block;vertical-align: top;width: 0px;height: 0px;border-top: 32px solid rgb(35, 88, 186);border-right: 32px solid transparent;border-top-right-radius: 4px;border-bottom-left-radius: 2px;color: inherit;box-sizing: border-box !important;word-wrap: break-word !important;"></section>
                    </section>
                </section>
            </section>
        </section>
    </section>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><br></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#29305;&#24449;&#24037;&#31243;&#21253;&#25324;&#30340;&#20869;&#23481;&#24456;&#22810;&#65292;&#26377;&#29305;&#24449;&#28165;&#27927;&#65292;&#39044;&#22788;&#29702;&#65292;&#30417;&#25511;&#31561;&#65292;&#32780;&#39044;&#22788;&#29702;&#26681;&#25454;&#21333;&#19968;&#29305;&#24449;&#25110;&#22810;&#29305;&#24449;&#21448;&#20998;&#24456;&#22810;&#31181;&#26041;&#27861;&#65292;&#22914;&#24402;&#19968;&#21270;&#65292;&#38477;&#32500;&#65292;&#29305;&#24449;&#36873;&#25321;&#65292;&#29305;&#24449;&#31579;&#36873;&#31561;&#31561;&#12290;&#36825;&#20040;&#22810;&#30340;&#26041;&#27861;&#65292;&#20026;&#30340;&#26159;&#20160;&#20040;&#21602;&#65311;<strong>&#20854;</strong><strong>&#30446;&#30340;&#26159;&#35753;&#36825;&#20123;&#29305;&#24449;&#26356;&#21451;&#22909;&#30340;&#20316;&#20026;&#27169;&#22411;&#30340;&#36755;&#20837;&#65292;</strong>&#22788;&#29702;&#25968;&#25454;&#30340;&#22909;&#22351;&#20250;&#20005;&#37325;&#30340;&#24433;&#21709;&#27169;&#22411;&#24615;&#33021;&#65292;&#32780;&#22909;&#30340;&#29305;&#24449;&#24037;&#31243;&#26377;&#30340;&#26102;&#20505;&#29978;&#33267;&#27604;&#24314;&#27169;&#35843;&#21442;&#26356;&#37325;&#35201;&#12290;</span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;"><br></span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#19979;&#38754;&#26159;&#32487;&#19978;&#19968;&#27425;&#20998;&#26512;&#20043;&#21518;&#23545;&#25968;&#25454;&#36827;&#34892;&#30340;&#29305;&#24449;&#24037;&#31243;&#65292;&#21338;&#20027;&#23558;&#19968;&#20010;&#19968;&#20010;&#24110;&#22823;&#23478;&#35299;&#35835;&#12290;</span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span
            style="font-size: 14px;"></span></p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs python"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 1</span><span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">"""<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 2</span>&#29305;&#24449;&#24037;&#31243;<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 3</span>"""</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 4</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#31227;&#38500;&#32467;&#26500;&#31867;&#22411;&#24322;&#24120;&#20540;&#21644;&#25151;&#23627;&#22823;&#23567;&#24322;&#24120;&#20540;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 5</span>df&#160;=&#160;df[(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout'</span>]!=<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#21472;&#25340;&#21035;&#22661;'</span>)&amp;(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Size'</span>]&lt;<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">1000</span>)]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 6</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 7</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#21435;&#25481;&#38169;&#35823;&#25968;&#25454;&#8220;&#21335;&#21271;&#8221;&#65292;&#22240;&#20026;&#29228;&#34411;&#36807;&#31243;&#20013;&#19968;&#20123;&#20449;&#24687;&#20301;&#32622;&#20026;&#31354;&#65292;&#23548;&#33268;&#8220;Direction&#8221;&#30340;&#29305;&#24449;&#20986;&#29616;&#22312;&#36825;&#37324;&#65292;&#38656;&#35201;&#28165;&#38500;&#25110;&#26367;&#25442;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 8</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Renovation'</span>]&#160;=&#160;df.loc[(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Renovation'</span>]&#160;!=&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#21335;&#21271;'</span>),&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Renovation'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 9</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">10</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#30001;&#20110;&#23384;&#22312;&#20010;&#21035;&#31867;&#22411;&#38169;&#35823;&#65292;&#22914;&#31616;&#35013;&#21644;&#31934;&#35013;&#65292;&#29305;&#24449;&#20540;&#38169;&#20301;&#65292;&#25925;&#38656;&#35201;&#31227;&#38500;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">11</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Elevator'</span>]&#160;=&#160;df.loc[(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Elevator'</span>]&#160;==&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#26377;&#30005;&#26799;'</span>)|(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Elevator'</span>]&#160;==&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#26080;&#30005;&#26799;'</span>),&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Elevator'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">12</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">13</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#22635;&#34917;Elevator&#32570;&#22833;&#20540;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">14</span>df.loc[(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Floor'</span>]&gt;<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">6</span>)&amp;(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Elevator'</span>].isnull()),&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Elevator'</span>]&#160;=&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#26377;&#30005;&#26799;'</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">15</span>df.loc[(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Floor'</span>]&lt;=<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">6</span>)&amp;(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Elevator'</span>].isnull()),&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Elevator'</span>]&#160;=&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#26080;&#30005;&#26799;'</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">16</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">17</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#21482;&#32771;&#34385;&#8220;&#23460;&#8221;&#21644;&#8220;&#21381;&#8221;&#65292;&#23558;&#20854;&#23427;&#23569;&#25968;&#8220;&#25151;&#38388;&#8221;&#21644;&#8220;&#21355;&#8221;&#31227;&#38500;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">18</span>df&#160;=&#160;df.loc[df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout'</span>].str.extract(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'^d(.*?)d.*?'</span>)&#160;==&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#23460;'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">19</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">20</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#25552;&#21462;&#8220;&#23460;&#8221;&#21644;&#8220;&#21381;&#8221;&#21019;&#24314;&#26032;&#29305;&#24449;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">21</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_room_num'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout'</span>].str.extract(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'(^d).*'</span>,&#160;expand=<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">False</span>).astype(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'int64'</span>)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">22</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_hall_num'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout'</span>].str.extract(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'^d.*?(d).*'</span>,&#160;expand=<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">False</span>).astype(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'int64'</span>)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">23</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">24</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#25353;&#20013;&#20301;&#25968;&#23545;&#8220;Year&#8221;&#29305;&#24449;&#36827;&#34892;&#20998;&#31665;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">25</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Year'</span>]&#160;=&#160;pd.qcut(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Year'</span>],<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">8</span>).astype(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'object'</span>)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">26</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">27</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#23545;&#8220;Direction&#8221;&#29305;&#24449;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">28</span>d_list_one&#160;=&#160;[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#35199;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#21335;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#21271;'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">29</span>d_list_two&#160;=&#160;[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#35199;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#21335;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#21271;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#35199;&#21335;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#35199;&#21271;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#21335;&#21271;'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">30</span>d_list_three&#160;=&#160;[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#35199;&#21335;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#35199;&#21271;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#21335;&#21271;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#35199;&#21335;&#21271;'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">31</span>d_list_four&#160;=&#160;[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#35199;&#21335;&#21271;'</span>]&#160;&#160;&#160;&#160;<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">32</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Direction'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Direction'</span>].apply(direct_func)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">33</span>df&#160;=&#160;df.loc[(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Direction'</span>]!=<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'no'</span>)&amp;(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Direction'</span>]!=<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'nan'</span>)]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">34</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">35</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#26681;&#25454;&#24050;&#26377;&#29305;&#24449;&#21019;&#24314;&#26032;&#29305;&#24449;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">36</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_total_num'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_room_num'</span>]&#160;+&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_hall_num'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">37</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Size_room_ratio'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Size'</span>]/df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_total_num'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">38</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">39</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#21024;&#38500;&#26080;&#29992;&#29305;&#24449;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">40</span>df&#160;=&#160;df.drop([<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'PerPrice'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Garden'</span>],axis=<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">1</span>)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">41</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">42</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#23545;&#20110;object&#29305;&#24449;&#36827;&#34892;onehot&#32534;&#30721;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">43</span>df,df_cat&#160;=&#160;one_hot_encoder(df)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"></code></pre>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <span style="font-size: 14px;">&#30001;&#20110;&#19968;&#20123;&#28165;&#27927;&#22788;&#29702;&#22312;&#19978;&#19968;&#31687;&#25991;&#31456;&#24050;&#32463;&#25552;&#21040;&#65292;&#21338;&#20027;&#20174;17&#34892;&#20195;&#30721;&#24320;&#22987;&#12290;</span>
    </p>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <span style="font-size: 16px;"><strong>Layout</strong></span></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#20808;&#26469;&#30475;&#30475;&#27809;&#32463;&#22788;&#29702;&#30340;Layout&#29305;&#24449;&#20540;&#26159;&#20160;&#20040;&#26679;&#30340;&#12290;</span>
    </p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs css"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">1</span><span
            class="hljs-selector-tag"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">df</span><span
            class="hljs-selector-attr"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">['Layout']</span><span
            class="hljs-selector-class"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">.value_counts</span>()<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"></code></pre>
    <p><img class="" data-copyright="0" data-ratio="1.6585365853658536" data-s="300,640"
            data-src="https://mmbiz.qpic.cn/mmbiz_jpg/NOM5HN2icXzwxmia0naHKuV0X7iaz8gNuL2CVu6fvAlp9yY2LmrQcFib9M0iaBEZ1N7icGNPO3SfiaicZ4q4roGscdyrgg/640?wx_fmt=jpeg"
            data-type="jpeg" data-w="615" style=""></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;"><br></span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#22823;&#23478;&#20063;&#37117;&#30475;&#21040;&#20102;&#65292;&#29305;&#24449;&#20540;&#24182;&#19981;&#26159;&#20687;&#24819;&#35937;&#20013;&#30340;&#37027;&#20040;&#29702;&#24819;&#12290;&#26377;&#20004;&#31181;&#26684;&#24335;&#30340;&#25968;&#25454;&#65292;&#19968;&#31181;&#26159;<strong>"</strong><strong>xx&#23460;xx&#21381;"</strong>&#65292;&#21478;&#19968;&#31181;&#26159;<strong>"</strong><strong>xx&#25151;&#38388;xx&#21355;"&#65292;</strong>&#20294;&#26159;&#32477;&#22823;&#22810;&#25968;&#37117;&#26159;xx&#23460;xx&#21381;&#30340;&#25968;&#25454;&#12290;&#32780;&#23545;&#20110;&#20687;"11&#25151;&#38388;3&#21355;"&#25110;&#32773;"5&#25151;&#38388;0&#21355;"&#36825;&#20123;&#30340;Layout&#26126;&#26174;&#19981;&#26159;&#27665;&#20303;&#30340;&#20108;&#25163;&#25151;&#65288;&#19981;&#22312;&#25105;&#20204;&#30340;&#32771;&#34385;&#33539;&#22260;&#20043;&#20869;&#65289;&#65292;&#22240;&#27492;&#26368;&#21518;&#20915;&#23450;&#23558;&#25152;&#26377;"xx&#25151;&#38388;xx&#21355;"&#26684;&#24335;&#30340;&#25968;&#25454;&#37117;&#31227;&#38500;&#25481;&#65292;&#21482;&#20445;&#30041;"xx&#23460;xx&#21381;"&#30340;&#25968;&#25454;&#12290;<br></span><br>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><strong><span
            style="font-size: 14px;">Layout&#29305;&#24449;&#30340;&#22788;&#29702;&#22914;&#19979;&#65306;</span></strong>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;"><br></span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#31532;2&#34892;&#30340;&#24847;&#24605;&#26159;&#21482;&#20445;&#30041;<span
            style="color: rgb(51, 51, 51);font-size: 14px;">"xx&#23460;xx&#21381;"&#25968;&#25454;&#65292;&#20294;&#26159;&#20445;&#30041;&#36825;&#31181;&#26684;&#24335;&#30340;&#25968;&#25454;&#20063;&#26159;&#19981;&#33021;&#20316;&#20026;&#27169;&#22411;&#30340;&#36755;&#20837;&#30340;&#65292;&#25105;&#20204;&#19981;&#22914;&#24178;&#33030;&#23558;"&#23460;"&#21644;"&#21381;"&#37117;&#25552;&#21462;&#20986;&#26469;&#65292;&#21333;&#29420;&#20316;&#20026;&#20004;&#20010;&#26032;&#29305;&#24449;&#65288;&#22914;&#31532;5&#21644;6&#34892;&#65289;&#65292;&#36825;&#26679;&#25928;&#26524;&#21487;&#33021;&#26356;&#22909;&#12290;</span></span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span
            style="color: rgb(51, 51, 51);font-size: 14px;"><br></span></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span
            style="color: rgb(51, 51, 51);font-size: 14px;">&#20855;&#20307;&#30340;&#29992;&#27861;&#23601;&#26159;&#20351;&#29992;&#160;</span><span
            style="font-size: 14px;color: rgb(255, 76, 0);">str.extract()&#160;</span><span
            style="color: rgb(51, 51, 51);font-size: 14px;">&#26041;&#27861;&#65292;&#37324;&#38754;&#20889;&#30340;&#26159;&#27491;&#21017;&#34920;&#36798;&#24335;&#12290;</span>
    </p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs php"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">1</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#21482;&#32771;&#34385;&#8220;&#23460;&#8221;&#21644;&#8220;&#21381;&#8221;&#65292;&#23558;&#20854;&#23427;&#23569;&#25968;&#8220;&#25151;&#38388;&#8221;&#21644;&#8220;&#21355;&#8221;&#31227;&#38500;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">2</span>df&#160;=&#160;df.loc[df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout'</span>].str.extract(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'^d(.*?)d.*?'</span>)&#160;==&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#23460;'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">3</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">4</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#25552;&#21462;&#8220;&#23460;&#8221;&#21644;&#8220;&#21381;&#8221;&#21019;&#24314;&#26032;&#29305;&#24449;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">5</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_room_num'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout'</span>].str.extract(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'(^d).*'</span>,&#160;expand=<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">False</span>).astype(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'int64'</span>)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">6</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_hall_num'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout'</span>].str.extract(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'^d.*?(d).*'</span>,&#160;expand=<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">False</span>).astype(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'int64'</span>)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"></code></pre>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <strong><span style="font-size: 16px;">Year</span></strong></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#25105;&#20204;&#36824;&#26377;&#19968;&#20010; Year &#29305;&#24449;&#65292;&#20026;&#24314;&#25151;&#30340;&#24180;&#38480;&#26102;&#38388;&#12290;&#24180;&#38480;&#31181;&#31867;&#24456;&#22810;&#65292;&#20998;&#24067;&#22312;1950&#21644;2018&#20043;&#38388;&#65292;&#22914;&#26524;&#27599;&#20010;&#19981;&#21516;&#30340; Year &#20540;&#37117;&#20316;&#20026;&#29305;&#24449;&#20540;&#65292;&#25105;&#20204;&#24182;&#19981;&#33021;&#25214;&#20986; Year &#23545; Price &#26377;&#20160;&#20040;&#24433;&#21709;&#65292;&#22240;&#20026;&#24180;&#38480;&#21010;&#20998;&#30340;&#22826;&#32454;&#20102;&#12290;&#22240;&#27492;&#65292;&#25105;&#20204;&#21482;&#26377;&#23558;&#36830;&#32493;&#25968;&#20540;&#22411;&#29305;&#24449; Year <strong>&#31163;&#25955;&#21270;&#65292;</strong><strong>&#20570;&#20998;&#31665;&#22788;&#29702;</strong>&#12290;</span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;"><br></span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#22914;&#20309;&#20998;&#31665;&#36824;&#35201;&#30475;&#23454;&#38469;&#19994;&#21153;&#38656;&#27714;&#65292;<span
            style="color: rgb(51, 51, 51);font-size: 14px;">&#21338;&#20027;&#20026;&#20102;&#26041;&#20415;&#24182;&#27809;&#26377;&#25163;&#21160;&#20998;&#31665;&#65292;&#32780;&#20351;&#29992;&#20102;pandas&#30340;&#160;</span></span><span
            style="font-size: 14px;color: rgb(255, 76, 0);">qcut&#160;</span><span
            style="color: rgb(51, 51, 51);font-size: 14px;">&#37319;&#29992;&#20013;&#20301;&#25968;&#36827;&#34892;&#20998;&#21106;&#65292;&#20998;&#21106;&#25968;&#20026;8&#31561;&#20221;&#12290;</span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span
            style="font-size: 14px;"></span></p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs bash"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">1</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#25353;&#20013;&#20301;&#25968;&#23545;&#8220;Year&#8221;&#29305;&#24449;&#36827;&#34892;&#20998;&#31665;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">2</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Year'</span>]&#160;=&#160;pd.qcut(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Year'</span>],8).astype(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'object'</span>)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"></code></pre>
    <p><span style="color: rgb(51, 51, 51);font-size: 14px;"><br></span></p>
    <p><span style="color: rgb(51, 51, 51);font-size: 14px;">&#36825;&#26159;&#23558; Year &#36827;&#34892;&#20998;&#31665;&#30340;&#32467;&#26524;&#65306;</span>
    </p>
    <p><img class="" data-copyright="0" data-ratio="0.33217391304347826" data-s="300,640"
            data-src="https://mmbiz.qpic.cn/mmbiz_jpg/NOM5HN2icXzwxmia0naHKuV0X7iaz8gNuL2O92R0yOGXUkguKRcnKNaHk3QzxCcegP2qyQE0kUletWUYqJ3JXUqdA/640?wx_fmt=jpeg"
            data-type="jpeg" data-w="575" style=""></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><br></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><strong>Direction</strong></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><br></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#36825;&#20010;&#29305;&#24449;&#27809;&#22788;&#29702;&#20043;&#21069;&#26356;&#20081;&#65292;&#21407;&#20197;&#20026;&#26159;&#29228;&#34411;&#30340;&#38382;&#39064;&#65292;&#20294;&#26159;&#20146;&#33258;&#21040;&#38142;&#23478;&#30475;&#36807;&#65292;&#26397;&#21521;&#30830;&#23454;&#26159;&#36825;&#26679;&#30340;&#12290;</span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span
            style="font-size: 14px;"></span></p>
    <p style="text-align: center;"><img class="" data-copyright="0" data-ratio="1.9217557251908397" data-s="300,640"
                                        data-src="https://mmbiz.qpic.cn/mmbiz_jpg/NOM5HN2icXzwxmia0naHKuV0X7iaz8gNuL2kZMLRWlcChicGxQZ1IqbdECyWRPKVkiaickEicqsaBtuS69xa2q3dyC5Lg/640?wx_fmt=jpeg"
                                        data-type="jpeg" data-w="524" style=""></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;"><span style="color: rgb(51, 51, 51);font-size: 14px;">&#22914;&#19978;&#25152;&#35265;&#65292;&#20687;"&#35199;&#21335;&#35199;&#21271;&#21271;"&#25110;&#32773;"&#19996;&#19996;&#21335;&#21335;"&#36825;&#26679;&#30340;&#26397;&#21521;&#26159;&#19981;&#31526;&#21512;&#24120;&#35782;&#30340;&#65288;&#21453;&#27491;&#25105;&#26159;&#29702;&#35299;&#19981;&#20102;&#65289;&#12290;&#22240;&#27492;&#65292;&#25105;&#20204;&#38656;&#35201;&#23558;&#36825;&#20123;&#20940;&#20081;&#30340;&#25968;&#25454;&#36827;&#34892;&#22788;&#29702;&#65292;&#20855;&#20307;&#23454;&#29616;&#26041;&#24335;&#26159;&#21338;&#20027;&#33258;&#24049;&#20889;&#20102;&#19968;&#20010;&#20989;&#25968; </span><span
            style="font-size: 14px;color: rgb(255, 76, 0);">direct_func</span><span
            style="color: rgb(51, 51, 51);font-size: 14px;">&#65292;&#20027;&#35201;&#24605;&#24819;&#23601;&#26159;&#23558;&#21508;&#31181;&#37325;&#22797;&#20294;&#39034;&#24207;&#19981;&#19968;&#26679;&#30340;&#29305;&#24449;&#20540;&#21512;&#24182;&#65292;&#27604;&#22914;"&#35199;&#21335;&#21271;"&#21644;"&#21335;&#35199;&#21271;"&#65292;&#24182;&#23558;&#19981;&#21512;&#29702;&#30340;&#19968;&#20123;&#20540;&#31227;&#38500;&#65292;&#22914;"&#35199;&#21335;&#35199;&#21271;&#21271;"&#31561;&#12290;</span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;"><span style="color: rgb(51, 51, 51);font-size: 14px;"><br></span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;"><span style="color: rgb(51, 51, 51);font-size: 14px;">&#28982;&#21518;&#36890;&#36807; </span><span
            style="color: rgb(255, 76, 0);font-size: 14px;">apply()&#160;</span><span style="font-size: 14px;">&#26041;&#27861;&#23558; Direction &#25968;&#25454;&#26684;&#24335;&#36716;&#25442;&#65292;&#20195;&#30721;&#22914;&#19979;&#65306;</span>
    </p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs nginx"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">1</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#23545;&#8220;Direction&#8221;&#29305;&#24449;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">2</span><span
            class="hljs-attribute"
            style="box-sizing: border-box;font-size: inherit;color: rgb(191, 121, 219);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">d_list_one</span>&#160;=&#160;[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#35199;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#21335;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#21271;'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">3</span>d_list_two&#160;=&#160;[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#35199;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#21335;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#21271;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#35199;&#21335;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#35199;&#21271;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#21335;&#21271;'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">4</span>d_list_three&#160;=&#160;[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#35199;&#21335;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#35199;&#21271;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#21335;&#21271;'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#35199;&#21335;&#21271;'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">5</span>d_list_four&#160;=&#160;[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'&#19996;&#35199;&#21335;&#21271;'</span>]&#160;&#160;&#160;&#160;<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">6</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Direction'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Direction'</span>].apply(direct_func)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">7</span>df&#160;=&#160;df.loc[(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Direction'</span>]!=<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'no'</span>)&amp;(df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Direction'</span>]!=<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'nan'</span>)]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"></code></pre>
    <p><br></p>
    <p><span style="font-size: 14px;">&#22788;&#29702;&#23436;&#32467;&#26524;&#22914;&#19979;&#65292;&#25152;&#26377;&#30340;&#20869;&#23481;&#30456;&#21516;&#32780;&#39034;&#24207;&#19981;&#21516;&#30340;&#26397;&#21521;&#37117;&#21512;&#24182;&#20102;&#65292;&#24322;&#24120;&#26397;&#21521;&#20063;&#34987;&#31227;&#38500;&#20102;&#12290;</span>
    </p>
    <p><br></p>
    <p><img class="" data-copyright="0" data-ratio="0.46697388632872505" data-s="300,640"
            data-src="https://mmbiz.qpic.cn/mmbiz_jpg/NOM5HN2icXzwxmia0naHKuV0X7iaz8gNuL2Yo64ORspRWL3pZS2SWUNeoot3CLVAhN8JuAwxb2L6vvyBia3bMpWWWw/640?wx_fmt=jpeg"
            data-type="jpeg" data-w="651"></p>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <span style="font-size: 14px;"></span><strong>&#21019;&#24314;&#26032;&#29305;&#24449;</strong></p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#26377;&#26102;&#20505;&#20165;&#38752;&#24050;&#26377;&#30340;&#19968;&#20123;&#29305;&#24449;&#26159;&#19981;&#22815;&#30340;&#65292;&#38656;&#35201;&#26681;&#25454;&#23545;&#19994;&#21153;&#30340;&#29702;&#35299;&#65292;&#23450;&#20041;&#19968;&#20123;&#30340;&#26032;&#29305;&#24449;&#65292;&#28982;&#21518;&#23581;&#35797;&#36825;&#20123;&#26032;&#29305;&#24449;&#23545;&#27169;&#22411;&#30340;&#24433;&#21709;&#65292;&#22312;&#23454;&#25112;&#20013;&#20250;&#32463;&#24120;&#20351;&#29992;&#36825;&#31181;&#26041;&#27861;&#12290;</span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;"><br></span>
    </p>
    <p style="max-width: 100%;word-wrap: normal;min-height: 1em;color: rgb(51, 51, 51);"><span style="font-size: 14px;">&#36825;&#37324;&#23581;&#35797;&#23558;"&#23460;"&#19982;"&#21381;"&#30340;&#25968;&#37327;&#30456;&#21152;&#20316;&#20026;&#19968;&#20010;&#24635;&#25968;&#37327;&#29305;&#24449;&#65292;&#28982;&#21518;&#23558;&#25151;&#23627;&#22823;&#23567;Size&#19982;&#24635;&#25968;&#37327;&#30340;&#27604;&#20540;&#20316;&#20026;&#19968;&#20010;&#26032;&#29305;&#24449;&#65292;&#21487;&#29702;&#35299;&#20026; "&#27599;&#20010;&#25151;&#38388;&#30340;&#24179;&#22343;&#38754;&#31215;&#22823;&#23567;"&#12290;&#24403;&#28982;&#65292;&#26032;&#29305;&#24449;&#19981;&#26159;&#22266;&#23450;&#30340;&#65292;&#21487;&#26681;&#25454;&#33258;&#24049;&#30340;&#29702;&#35299;&#26469;&#28789;&#27963;&#30340;&#23450;&#20041;&#12290;</span>
    </p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs bash"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">1</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#26681;&#25454;&#24050;&#26377;&#29305;&#24449;&#21019;&#24314;&#26032;&#29305;&#24449;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">2</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_total_num'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_room_num'</span>]&#160;+&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_hall_num'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">3</span>df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Size_room_ratio'</span>]&#160;=&#160;df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Size'</span>]/df[<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout_total_num'</span>]<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">4</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">5</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#21024;&#38500;&#26080;&#29992;&#29305;&#24449;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">6</span>df&#160;=&#160;df.drop([<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Layout'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'PerPrice'</span>,<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'Garden'</span>],axis=1)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"></code></pre>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <span style="font-size: 14px;">&#26368;&#21518;&#21024;&#38500;&#26087;&#30340;&#29305;&#24449; Layout&#65292;PerPrice&#65292;Garden&#12290;</span><br>
    </p>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <strong><span style="font-size: 16px;">One-hot coding</span></strong></p>
    <p><span style="font-size: 14px;">&#36825;&#37096;&#20998;&#26159; One-hot &#29420;&#28909;&#32534;&#30721;&#65292;&#22240;&#20026;&#20687; Region&#65292;Year&#65288;&#31163;&#25955;&#20998;&#31665;&#21518;&#65289;&#65292;Direction&#65292;Renovation&#65292;Elevator&#31561;&#29305;&#24449;&#37117;&#26159;<strong>&#23450;&#31867;</strong><strong>&#30340;&#38750;&#25968;&#20540;&#22411;&#31867;&#22411;</strong>&#65292;&#32780;&#20316;&#20026;&#27169;&#22411;&#30340;&#36755;&#20837;&#25105;&#20204;&#38656;&#35201;&#23558;&#36825;&#20123;&#38750;&#25968;&#20540;&#37327;&#21270;&#12290;</span>
    </p>
    <p><span style="font-size: 14px;"><br></span></p>
    <p><span style="font-size: 14px;">&#22312;&#27809;&#26377;&#19968;&#23450;&#39034;&#24207;&#65288;&#23450;&#24207;&#31867;&#22411;&#65289;&#30340;&#24773;&#20917;&#19979;&#65292;&#20351;&#29992;&#29420;&#28909;&#32534;&#30721;&#22788;&#29702;&#23450;&#31867;&#25968;&#25454;&#26159;&#38750;&#24120;&#24120;&#29992;&#30340;&#20570;&#27861;&#65292;&#22312;pandas&#20013;&#38750;&#24120;&#31616;&#21333;&#65292;&#23601;&#26159;&#20351;&#29992; </span><span
            style="font-size: 14px;color: rgb(255, 76, 0);">get_dummies() </span><span style="font-size: 14px;">&#26041;&#27861;&#65292;&#32780;&#23545;&#20110;&#20687;Size&#36825;&#26679;&#30340;&#23450;&#27604;&#25968;&#25454;&#21017;&#19981;&#20351;&#29992;&#29420;&#28909;&#65292;&#21338;&#20027;&#36825;&#37324;&#29992;&#20102;&#19968;&#20010;&#33258;&#24049;&#23553;&#35013;&#30340;&#20989;&#25968;&#23454;&#29616;&#20102;&#23450;&#31867;&#25968;&#25454;&#30340;&#33258;&#21160;&#37327;&#21270;&#22788;&#29702;&#12290;</span>
    </p>
    <p><span style="font-size: 14px;"><br></span></p>
    <blockquote><p><span style="font-size: 14px;"><span style="font-size: 14px;">&#23545;&#20110;</span><strong
            style="font-size: 14px;white-space: normal;">&#23450;&#31867;&#65292;&#23450;&#24207;&#65292;&#23450;&#36317;&#65292;&#23450;&#27604;</strong><span
            style="font-size: 14px;">&#36825;&#22235;&#20010;&#38750;&#24120;&#37325;&#35201;&#30340;&#25968;&#25454;&#31867;&#22411;&#30456;&#20449;&#21152;&#20837;&#30693;&#35782;&#26143;&#29699;&#30340;&#20249;&#20276;&#37117;&#38750;&#24120;&#29087;&#24713;&#20102;&#65292;&#24819;&#35201;&#20102;&#35299;&#30340;&#21516;&#23398;&#21487;&#20197;&#25195;&#25551;&#26368;&#21518;&#20108;&#32500;&#30721;&#26597;&#30475;&#12290;</span></span>
    </p></blockquote>
    <p><span style="font-size: 14px;"><span style="font-size: 14px;"></span></span></p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs apache"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">1</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#23545;&#20110;object&#29305;&#24449;&#36827;&#34892;onehot&#32534;&#30721;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">2</span><span
            class="hljs-attribute"
            style="box-sizing: border-box;font-size: inherit;color: rgb(191, 121, 219);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">df</span>,df_cat&#160;=&#160;one_hot_encoder(df)</code></pre>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <span style="font-size: 14px;color: rgb(0, 0, 0);">&#20197;&#19978;&#30340;&#29305;&#24449;&#24037;&#31243;&#23601;&#23436;&#25104;&#20102;&#12290;</span>
    </p>
    <p><strong>&#29305;&#24449;&#30456;&#20851;&#24615;</strong></p>
    <p><span style="font-size: 14px;"></span><br></p>
    <p><span style="font-size: 14px;">&#19979;&#38754;&#20351;&#29992; </span><span
            style="font-size: 14px;color: rgb(255, 76, 0);">seaborn</span><span
            style="font-size: 14px;"> &#30340;&#160;</span><span style="font-size: 14px;color: rgb(255, 76, 0);">heatmap&#160;</span><span
            style="font-size: 14px;">&#26041;&#27861;&#23545;&#29305;&#24449;&#30456;&#20851;&#24615;&#36827;&#34892;&#21487;&#35270;&#21270;&#12290;</span>
    </p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs php"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">1</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;data_corr&#160;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">2</span>colormap&#160;=&#160;plt.cm.RdBu<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">3</span>plt.figure(figsize=(<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">20</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">20</span>))<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">4</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;plt.title('Pearson&#160;Correlation&#160;of&#160;Features',&#160;y=1.05,&#160;size=15)</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">5</span>sns.heatmap(df.corr(),linewidths=<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">0.1</span>,vmax=<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">1.0</span>,&#160;square=<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">True</span>,&#160;cmap=colormap,&#160;linecolor=<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'white'</span>,&#160;annot=<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">True</span>)</code></pre>
    <p><img class="" data-copyright="0" data-ratio="0.9275053304904051" data-s="300,640"
            data-src="https://mmbiz.qpic.cn/mmbiz_jpg/NOM5HN2icXzwxmia0naHKuV0X7iaz8gNuL2q9xiaRyBBCickOUqMlTY7DlcCIGv4vicZVTibUWkV9ZUS7cuwaNNuXYHeQ/640?wx_fmt=jpeg"
            data-type="jpeg" data-w="938" style=""><span style="font-size: 14px;background-color: rgb(255, 255, 255);">&#39068;&#33394;&#20559;&#32418;&#25110;&#32773;&#20559;&#34013;&#37117;&#35828;&#26126;&#30456;&#20851;&#31995;&#25968;&#36739;&#22823;&#65292;&#21363;&#20004;&#20010;&#29305;&#24449;&#23545;&#20110;&#30446;&#26631;&#21464;&#37327;&#30340;&#24433;&#21709;&#31243;&#24230;&#30456;&#20284;&#65292;&#21363;&#23384;&#22312;&#20005;&#37325;&#30340;&#37325;&#22797;&#20449;&#24687;&#65292;&#20250;&#36896;&#25104;&#36807;&#25311;&#21512;&#29616;&#35937;&#12290;&#22240;&#27492;&#65292;&#36890;&#36807;&#29305;&#24449;&#30456;&#20851;&#24615;&#20998;&#26512;&#65292;&#25105;&#20204;&#21487;&#20197;&#25214;&#20986;&#21738;&#20123;&#29305;&#24449;&#26377;&#20005;&#37325;&#30340;&#37325;&#21472;&#20449;&#24687;&#65292;&#28982;&#21518;&#25321;&#20248;&#36873;&#25321;&#12290;</span>
    </p>
    <p><span style="font-size: 14px;background-color: rgb(255, 255, 255);"><br></span></p>
    <section class="" data-role="outer" label="Powered by 365editor"
             style="font-size: 16px;white-space: normal;max-width: 100%;color: rgb(51, 51, 51);letter-spacing: 0.544px;text-align: justify;background-color: rgb(255, 255, 255);font-family: &#24494;&#36719;&#38597;&#40657;;box-sizing: border-box !important;word-wrap: break-word !important;">
        <section
                style="margin-top: 5px;margin-bottom: 5px;max-width: 100%;box-sizing: border-box;clear: both;border-width: 0px;border-style: none;border-color: initial;word-wrap: break-word !important;">
            <section
                    style="max-width: 100%;box-sizing: border-box;border-top: 2.5px solid rgb(35, 88, 186);border-right-color: rgb(35, 88, 186);border-bottom-color: rgb(35, 88, 186);border-left-color: rgb(35, 88, 186);font-size: 1em;font-weight: inherit;text-decoration: inherit;color: rgb(255, 255, 255);word-wrap: break-word !important;">
                <section
                        style="margin-top: 2px;max-width: 100%;box-sizing: border-box;border-width: 0px;border-style: initial;border-color: rgb(35, 88, 186);overflow: hidden;color: inherit;word-wrap: break-word !important;">
                    <section
                            style="max-width: 100%;box-sizing: border-box;display: inline-block;font-size: 1em;font-family: inherit;font-weight: inherit;text-align: inherit;text-decoration: inherit;color: inherit;border-color: rgb(35, 88, 186);word-wrap: break-word !important;">
                        <section
                                style="padding: 5px 10px;max-width: 100%;display: inline-block;line-height: 1.4em;height: 32px;vertical-align: top;font-family: inherit;font-weight: bold;float: left;color: inherit;border-color: rgb(212, 43, 21);background: rgb(35, 88, 186);box-sizing: border-box !important;word-wrap: break-word !important;">
                            &#25968;&#25454;&#24314;&#27169;&#39044;&#27979;
                        </section>
                        <section
                                style="max-width: 100%;display: inline-block;vertical-align: top;width: 0px;height: 0px;border-top: 32px solid rgb(35, 88, 186);border-right: 32px solid transparent;border-top-right-radius: 4px;border-bottom-left-radius: 2px;color: inherit;box-sizing: border-box !important;word-wrap: break-word !important;"></section>
                    </section>
                </section>
            </section>
        </section>
    </section>
    <p><br></p>
    <p><span style="font-size: 14px;background-color: rgb(255, 255, 255);">&#20026;&#20102;&#26041;&#20415;&#29702;&#35299;&#65292;&#21338;&#20027;&#22312;&#24314;&#27169;&#19978;&#20570;&#20102;&#19968;&#20123;&#31934;&#31616;&#65292;</span><span
            style="background-color: rgb(255, 255, 255);font-size: 14px;">&#27169;&#22411;&#31574;&#30053;&#26041;&#27861;&#22914;&#19979;&#65306;</span>
    </p>
    <ul class=" list-paddingleft-2" style="">
        <li><p><span style="font-size: 14px;">&#20351;&#29992;<strong>Cart</strong><strong
                style="box-sizing: border-box;">&#20915;&#31574;&#26641;</strong>&#30340;&#22238;&#24402;&#27169;&#22411;&#23545;&#20108;&#25163;&#25151;&#25151;&#20215;&#36827;&#34892;&#20998;&#26512;&#39044;&#27979;</span>
        </p></li>
        <li><p><span style="font-size: 14px;">&#20351;&#29992;<strong style="box-sizing: border-box;">&#20132;&#21449;&#39564;&#35777;</strong>&#26041;&#27861;&#20805;&#20998;&#21033;&#29992;&#25968;&#25454;&#38598;&#36827;&#34892;&#35757;&#32451;&#65292;&#36991;&#20813;&#25968;&#25454;&#21010;&#20998;&#19981;&#22343;&#21248;&#30340;&#24433;&#21709;&#12290;</span>
        </p></li>
        <li><p><span style="font-size: 14px;">&#20351;&#29992;<strong
                style="box-sizing: border-box;">GridSearchCV</strong>&#26041;&#27861;&#20248;&#21270;&#27169;&#22411;&#21442;&#25968;</span>
        </p></li>
        <li><p><span style="font-size: 14px;">&#20351;&#29992;<strong style="box-sizing: border-box;">R2</strong>&#35780;&#20998;&#26041;&#27861;&#23545;&#27169;&#22411;&#39044;&#27979;&#35780;&#20998;</span>
        </p></li>
    </ul>
    <section style="max-width: 100%;color: rgb(51, 51, 51);"><br></section>
    <blockquote>
        <section style="max-width: 100%;color: rgb(51, 51, 51);"><span style="font-size: 14px;color: rgb(0, 0, 0);">&#19978;&#38754;&#30340;&#24314;&#27169;&#26041;&#27861;&#27604;&#36739;&#31616;&#21333;&#65292;&#26088;&#22312;&#35753;&#22823;&#23478;&#20102;&#35299;&#24314;&#27169;&#20998;&#26512;&#30340;&#36807;&#31243;&#12290;&#38543;&#30528;&#36880;&#28176;&#30340;&#28145;&#20837;&#20102;&#35299;&#65292;&#21338;&#20027;&#20250;&#20171;&#32461;&#26356;&#22810;&#23454;&#25112;&#20869;&#23481;&#12290;</span>
        </section>
    </blockquote>
    <p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><br>
    </p>
    <p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;">
        <strong>&#25968;&#25454;&#21010;&#20998;</strong></p>
    <p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><br>
    </p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs makefile"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">1</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#36716;&#25442;&#35757;&#32451;&#27979;&#35797;&#38598;&#26684;&#24335;&#20026;&#25968;&#32452;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">2</span>features&#160;=&#160;np.array(features)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">3</span>prices&#160;=&#160;np.array(prices)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">4</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">5</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#23548;&#20837;sklearn&#36827;&#34892;&#35757;&#32451;&#27979;&#35797;&#38598;&#21010;&#20998;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">6</span>from&#160;sklearn.model_selection&#160;import&#160;train_test_split<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">7</span>features_train,&#160;features_test,&#160;prices_train,&#160;prices_test&#160;=&#160;train_test_split(features,&#160;prices,&#160;test_size=0.2,&#160;random_state=0)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"></code></pre>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <span style="font-size: 14px;color: rgb(0, 0, 0);">&#23558;&#20197;&#19978;&#25968;&#25454;&#21010;&#20998;&#20026;<strong>&#35757;&#32451;&#38598;</strong>&#21644;<strong>&#27979;&#35797;&#38598;&#65292;</strong>&#35757;&#32451;&#38598;&#29992;&#20110;&#24314;&#31435;&#27169;&#22411;&#65292;&#27979;&#35797;&#38598;&#29992;&#20110;&#27979;&#35797;&#27169;&#22411;&#39044;&#27979;&#20934;&#30830;&#29575;&#12290;&#20351;&#29992;sklearn&#30340; </span><span
            style="font-size: 14px;color: rgb(255, 76, 0);">model_selection </span><span
            style="font-size: 14px;color: rgb(0, 0, 0);">&#23454;&#29616;&#20197;&#19978;&#21010;&#20998;&#21151;&#33021;&#12290;</span>
    </p>
    <p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;">
        <strong><span style="font-size: 16px;">&#24314;&#31435;&#27169;&#22411;</span></strong></p>
    <p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><br>
    </p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs python"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 1</span><span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">from</span>&#160;sklearn.model_selection&#160;<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">import</span>&#160;KFold<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 2</span><span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">from</span>&#160;sklearn.tree&#160;<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">import</span>&#160;DecisionTreeRegressor<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 3</span><span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">from</span>&#160;sklearn.metrics&#160;<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">import</span>&#160;make_scorer<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 4</span><span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">from</span>&#160;sklearn.model_selection&#160;<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">import</span>&#160;GridSearchCV<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 5</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 6</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#21033;&#29992;GridSearchCV&#35745;&#31639;&#26368;&#20248;&#35299;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 7</span><span
            class="hljs-function"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">def</span>&#160;<span
            class="hljs-title"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">fit_model</span><span
            class="hljs-params"
            style="box-sizing: border-box;font-size: inherit;color: rgb(255, 152, 35);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">(X,&#160;y)</span>:</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 8</span>&#160;&#160;&#160;&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">"""&#160;&#22522;&#20110;&#36755;&#20837;&#25968;&#25454;&#160;[X,y]&#65292;&#21033;&#20110;&#32593;&#26684;&#25628;&#32034;&#25214;&#21040;&#26368;&#20248;&#30340;&#20915;&#31574;&#26641;&#27169;&#22411;"""</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 9</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">10</span>&#160;&#160;&#160;&#160;cross_validator&#160;=&#160;KFold(<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">10</span>,&#160;shuffle=<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">True</span>)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">11</span>&#160;&#160;&#160;&#160;regressor&#160;=&#160;DecisionTreeRegressor()<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">12</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">13</span>&#160;&#160;&#160;&#160;params&#160;=&#160;{<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">'max_depth'</span>:[<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">1</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">2</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">3</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">4</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">5</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">6</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">7</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">8</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">9</span>,<span
            class="hljs-number"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">10</span>]}<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">14</span>&#160;&#160;&#160;&#160;scoring_fnc&#160;=&#160;make_scorer(performance_metric)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">15</span>&#160;&#160;&#160;&#160;grid&#160;=&#160;GridSearchCV(estimator&#160;=&#160;regressor,&#160;param_grid&#160;=&#160;params,&#160;scoring&#160;=&#160;scoring_fnc,&#160;cv&#160;=&#160;cross_validator)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">16</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">17</span>&#160;&#160;&#160;&#160;<span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#22522;&#20110;&#36755;&#20837;&#25968;&#25454;&#160;[X,y]&#65292;&#36827;&#34892;&#32593;&#26684;&#25628;&#32034;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">18</span>&#160;&#160;&#160;&#160;grid&#160;=&#160;grid.fit(X,&#160;y)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">19</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#160;&#160;&#160;&#160;print&#160;pd.DataFrame(grid.cv_results_)</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">20</span>&#160;&#160;&#160;&#160;<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">return</span>&#160;grid.best_estimator_<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">21</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">22</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#35745;&#31639;R2&#20998;&#25968;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">23</span><span
            class="hljs-function"
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">def</span>&#160;<span
            class="hljs-title"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">performance_metric</span><span
            class="hljs-params"
            style="box-sizing: border-box;font-size: inherit;color: rgb(255, 152, 35);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">(y_true,&#160;y_predict)</span>:</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">24</span>&#160;&#160;&#160;&#160;<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">"""&#35745;&#31639;&#24182;&#36820;&#22238;&#39044;&#27979;&#20540;&#30456;&#27604;&#20110;&#39044;&#27979;&#20540;&#30340;&#20998;&#25968;"""</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">25</span>&#160;&#160;&#160;&#160;<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">from</span>&#160;sklearn.metrics&#160;<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">import</span>&#160;r2_score<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">26</span>&#160;&#160;&#160;&#160;score&#160;=&#160;r2_score(y_true,&#160;y_predict)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">27</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">28</span>&#160;&#160;&#160;&#160;<span
            class="hljs-keyword"
            style="box-sizing: border-box;font-size: inherit;color: rgb(249, 38, 114);line-height: inherit;font-weight: bold;word-wrap: inherit !important;word-break: inherit !important;">return</span>&#160;score<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"></code></pre>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <span style="font-size: 14px;">&#20351;&#29992;&#20102; </span><span
            style="font-size: 14px;color: rgb(255, 76, 0);">KFold</span><span style="font-size: 14px;"> &#26041;&#27861;&#20943;&#32531;&#36807;&#25311;&#21512;&#65292;</span><span
            style="font-size: 14px;color: rgb(255, 76, 0);">GridSearchCV </span><span style="font-size: 14px;">&#26041;&#27861;&#36827;&#34892;&#26368;&#20248;&#21442;&#25968;&#33258;&#21160;&#25628;&#26597;&#65292;&#26368;&#21518;&#20351;&#29992;</span><span
            style="font-size: 14px;color: rgb(255, 76, 0);">R2</span><span style="font-size: 14px;">&#35780;&#20998;&#26469;&#32473;&#27169;&#22411;&#25171;&#20998;&#12290;</span>
    </p>
    <p><strong>&#35843;&#21442;&#20248;&#21270;&#27169;&#22411;</strong></p>
    <p><br></p>
    <pre style="box-sizing: border-box;margin-top: 0px;margin-bottom: 0px;padding: 0px;font-size: 16px;color: rgb(62, 62, 62);line-height: inherit;background-color: rgb(255, 255, 255);"><code
            class="hljs makefile"
            style="box-sizing: border-box;margin-right: 2px;margin-left: 2px;padding: 0.5em;font-size: 11px;color: rgb(221, 221, 221);line-height: 15px;border-radius: 0px;background: rgb(39, 40, 34);font-family: Consolas, Inconsolata, Courier, monospace;display: block;overflow-x: auto;word-spacing: -3px;letter-spacing: 0px;word-wrap: normal !important;word-break: normal !important;overflow-y: auto !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 1</span>import&#160;visuals&#160;as&#160;vs<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 2</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 3</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#20998;&#26512;&#27169;&#22411;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 4</span>vs.ModelLearning(features_train,&#160;prices_train)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 5</span>vs.ModelComplexity(features_train,&#160;prices_train)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 6</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 7</span>optimal_reg1&#160;=&#160;fit_model(features_train,&#160;prices_train)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 8</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;"> 9</span><span
            class="hljs-comment"
            style="box-sizing: border-box;font-size: inherit;color: rgb(117, 113, 94);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">#&#160;&#36755;&#20986;&#26368;&#20248;&#27169;&#22411;&#30340;&#160;'max_depth'&#160;&#21442;&#25968;</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">10</span>print(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">"&#26368;&#29702;&#24819;&#27169;&#22411;&#30340;&#21442;&#25968;&#160;'max_depth'&#160;&#26159;&#160;{}&#160;&#12290;"</span>.format(optimal_reg1.get_params()['max_depth']))<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">11</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">12</span>predicted_value&#160;=&#160;optimal_reg1.predict(features_test)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">13</span>r2&#160;=&#160;performance_metric(prices_test,&#160;predicted_value)<br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">14</span><br
            style="box-sizing: border-box;font-size: inherit;color: inherit;line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;"><span
            class="linenum hljs-number"
            style="box-sizing: border-box;padding-right: 20px;font-size: inherit;color: inherit;line-height: inherit;word-spacing: 0px;word-wrap: inherit !important;word-break: inherit !important;">15</span>print(<span
            class="hljs-string"
            style="box-sizing: border-box;font-size: inherit;color: rgb(166, 226, 46);line-height: inherit;word-wrap: inherit !important;word-break: inherit !important;">"&#26368;&#20248;&#27169;&#22411;&#22312;&#27979;&#35797;&#25968;&#25454;&#19978;&#160;R^2&#160;&#20998;&#25968;&#160;{:,.2f}&#12290;"</span>.format(r2))</code></pre>
    <p style="box-sizing: border-box;margin-top: 1.5em;margin-bottom: 1.5em;color: rgb(62, 62, 62);line-height: inherit;white-space: normal;background-color: rgb(255, 255, 255);">
        <span style="font-size: 14px;">&#30001;&#20110;&#20915;&#31574;&#26641;&#23481;&#26131;&#36807;&#25311;&#21512;&#30340;&#38382;&#39064;&#65292;&#25105;&#20204;&#36825;&#37324;&#37319;&#21462;&#35266;&#23519;&#23398;&#20064;&#26354;&#32447;&#30340;&#26041;&#27861;&#26597;&#30475;<strong>&#20915;&#31574;&#26641;&#28145;&#24230;</strong>&#65292;&#24182;&#21028;&#26029;&#27169;&#22411;&#26159;&#21542;&#20986;&#29616;&#20102;&#36807;&#25311;&#21512;&#29616;&#35937;&#12290;&#20197;&#19979;&#26159;&#35266;&#23519;&#21040;&#30340;&#23398;&#20064;&#26354;&#32447;&#22270;&#24418;&#65306;</span><img
            class="" data-copyright="0" data-ratio="0.8921568627450981" data-s="300,640"
            data-src="https://mmbiz.qpic.cn/mmbiz_jpg/NOM5HN2icXzwxmia0naHKuV0X7iaz8gNuL21nlXUVFhXu7l3Zd1zdibc2XfVzK0dyPK36GlUIRHeXFpiaEdjaJj3CeQ/640?wx_fmt=jpeg"
            data-type="jpeg" data-w="918" style="font-size: 16px;text-align: center;"><span style="font-size: 14px;">&#36890;&#36807;&#35266;&#23519;&#65292;&#26368;&#29702;&#24819;&#27169;&#22411;&#30340;&#21442;&#25968;"max_depth"&#26159;10&#65292;&#27492;&#31181;&#24773;&#20917;&#19979;<strong>&#36798;&#21040;&#20102;&#20559;&#24046;&#19982;&#26041;&#24046;&#30340;&#26368;&#20248;&#24179;&#34913;</strong>&#65292;&#26368;&#21518;&#27169;&#22411;&#22312;&#27979;&#35797;&#25968;&#25454;&#19978;&#30340;R2&#20998;&#25968;&#65292;&#20063;&#21363;&#20108;&#25163;&#25151;&#25151;&#20215;&#39044;&#27979;&#30340;&#20934;&#30830;&#29575;&#20026;&#65306;0.81&#12290;</span><br>
    </p>
    <section class="" data-role="outer" label="Powered by 365editor"
             style="font-size: 16px;white-space: normal;max-width: 100%;color: rgb(51, 51, 51);letter-spacing: 0.544px;text-align: justify;background-color: rgb(255, 255, 255);font-family: &#24494;&#36719;&#38597;&#40657;;box-sizing: border-box !important;word-wrap: break-word !important;">
        <section
                style="margin-top: 5px;margin-bottom: 5px;max-width: 100%;box-sizing: border-box;clear: both;border-width: 0px;border-style: none;border-color: initial;word-wrap: break-word !important;">
            <section
                    style="max-width: 100%;box-sizing: border-box;border-top: 2.5px solid rgb(35, 88, 186);border-right-color: rgb(35, 88, 186);border-bottom-color: rgb(35, 88, 186);border-left-color: rgb(35, 88, 186);font-size: 1em;font-weight: inherit;text-decoration: inherit;color: rgb(255, 255, 255);word-wrap: break-word !important;">
                <section
                        style="margin-top: 2px;max-width: 100%;box-sizing: border-box;border-width: 0px;border-style: initial;border-color: rgb(35, 88, 186);overflow: hidden;color: inherit;word-wrap: break-word !important;">
                    <section
                            style="max-width: 100%;box-sizing: border-box;display: inline-block;font-size: 1em;font-family: inherit;font-weight: inherit;text-align: inherit;text-decoration: inherit;color: inherit;border-color: rgb(35, 88, 186);word-wrap: break-word !important;">
                        <section
                                style="padding: 5px 10px;max-width: 100%;display: inline-block;line-height: 1.4em;height: 32px;vertical-align: top;font-family: inherit;font-weight: bold;float: left;color: inherit;border-color: rgb(212, 43, 21);background: rgb(35, 88, 186);box-sizing: border-box !important;word-wrap: break-word !important;">
                            &#24635;&#32467;
                        </section>
                        <section
                                style="max-width: 100%;display: inline-block;vertical-align: top;width: 0px;height: 0px;border-top: 32px solid rgb(35, 88, 186);border-right: 32px solid transparent;border-top-right-radius: 4px;border-bottom-left-radius: 2px;color: inherit;box-sizing: border-box !important;word-wrap: break-word !important;"></section>
                    </section>
                </section>
            </section>
        </section>
    </section>
    <p style="white-space: normal;"><br></p>
    <p style="white-space: normal;"><span style="font-size: 14px;background-color: rgb(255, 255, 255);">&#20197;&#19978;&#19968;&#20010;&#23436;&#25972;&#30340;&#20174;&#25968;&#25454;&#20998;&#26512;&#21040;&#25366;&#25496;&#30340;&#39033;&#30446;&#23601;&#32467;&#26463;&#20102;&#65292;&#23545;&#20110;&#39033;&#30446;&#32780;&#35328;&#27604;&#36739;&#31616;&#21333;&#65292;&#30446;&#30340;&#26159;&#35753;&#22823;&#23478;&#20102;&#35299;&#25972;&#20010;&#20998;&#26512;&#30340;&#36807;&#31243;&#12290;&#21487;&#25552;&#21319;&#25913;&#36827;&#30340;&#22320;&#26041;&#38750;&#24120;&#22810;&#65292;&#21487;&#20197;&#26377;&#26356;&#22909;&#26356;&#20581;&#22766;&#30340;&#26041;&#26696;&#20195;&#26367;&#65292;&#19968;&#20123;&#25913;&#36827;&#24605;&#32771;&#22914;&#19979;&#65306;</span>
    </p>
    <ul class=" list-paddingleft-2" style="list-style-type: disc;">
        <li><p style="white-space: normal;"><span style="font-size: 14px;background-color: rgb(255, 255, 255);">&#33719;&#21462;&#26356;&#22810;&#26377;&#20215;&#20540;&#30340;&#29305;&#24449;&#20449;&#24687;&#65292;&#27604;&#22914;&#23398;&#21306;&#65292;&#38468;&#36817;&#22320;&#38081;&#65292;&#36141;&#29289;&#20013;&#24515;&#31561;</span>
        </p></li>
        <li><p style="white-space: normal;"><span style="font-size: 14px;background-color: rgb(255, 255, 255);">&#23436;&#21892;&#29305;&#24449;&#24037;&#31243;&#65292;&#22914;&#36827;&#34892;&#26377;&#25928;&#30340;&#29305;&#24449;&#36873;&#25321;</span>
        </p></li>
        <li><p style="white-space: normal;"><span style="font-size: 14px;background-color: rgb(255, 255, 255);">&#20351;&#29992;&#26356;&#20248;&#31168;&#30340;&#27169;&#22411;&#31639;&#27861;&#24314;&#27169;&#25110;&#32773;&#20351;&#29992;&#27169;&#22411;&#34701;&#21512;</span>
        </p></li>
    </ul>
    <p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;">
        <strong><span style="font-size: 14px;"></span></strong><br></p>
    <section data-role="outer" label="Powered by 135editor.com"
             style='max-width: 100%;color: rgb(51, 51, 51);font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 17px;letter-spacing: 0.544px;text-align: justify;white-space: normal;box-sizing: border-box !important;overflow-wrap: break-word !important;'>
        <section class="" data-tools="135&#32534;&#36753;&#22120;" data-id="114"
                 style="max-width: 100%;box-sizing: border-box;border-width: 0px;border-style: none;border-color: initial;overflow-wrap: break-word !important;">
            <section
                    style="max-width: 100%;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;">
                <section
                        style="max-width: 100%;display: inline-block;box-sizing: border-box !important;overflow-wrap: break-word !important;">
                    <img class="__bg_gif" data-ratio="0.09363957597173145"
                         data-src="https://mmbiz.qpic.cn/mmbiz_gif/5mt0ewv9OS3CGdUxJz0KtQvhicb8vXXpuSm1Cke827uUD9gL8YP3SHibhQSo7skBOfvUBpjiaB7PTfQ1rFZ3mkjNw/640?wx_fmt=gif"
                         data-type="gif" data-w="566"
                         style="box-sizing: border-box !important;overflow-wrap: break-word !important;visibility: visible !important;width: auto !important;"
                         title="&#21160;&#29289;&#23567;&#20249;&#20276;&#25293;&#25163;&#31069;&#36154;&#29305;&#27530;&#29992;&#36884;&#21160;&#22270;"
                         width="auto"></section>
            </section>
        </section>
    </section>
    <p style='max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 17px;letter-spacing: 0.544px;text-align: justify;white-space: normal;box-sizing: border-box !important;overflow-wrap: break-word !important;'>
        <span style="max-width: 100%;color: rgb(80, 97, 109);font-family: Helvetica, Arial, sans-serif;letter-spacing: 1px;font-size: 14px;box-sizing: border-box !important;overflow-wrap: break-word !important;">Python&#20013;&#25991;&#31038;&#21306;&#20316;&#20026;&#19968;&#20010;&#21435;&#20013;&#24515;&#21270;&#30340;&#20840;&#29699;&#25216;&#26415;&#31038;&#21306;&#65292;&#20197;&#25104;&#20026;&#20840;&#29699;20&#19975;Python&#20013;&#25991;&#24320;&#21457;&#32773;&#30340;&#31934;&#31070;&#37096;&#33853;&#20026;&#24895;&#26223;&#65292;&#30446;&#21069;&#35206;&#30422;&#21508;&#22823;&#20027;&#27969;&#23186;&#20307;&#21644;&#21327;&#20316;&#24179;&#21488;&#65292;&#19982;&#38463;&#37324;&#12289;&#33150;&#35759;&#12289;&#30334;&#24230;&#12289;&#24494;&#36719;&#12289;&#20122;&#39532;&#36874;&#12289;&#24320;&#28304;&#20013;&#22269;&#12289;CSDN&#31561;&#19994;&#30028;&#30693;&#21517;&#20844;&#21496;&#21644;&#25216;&#26415;&#31038;&#21306;&#24314;&#31435;&#20102;&#24191;&#27867;&#30340;&#32852;&#31995;&#65292;&#25317;&#26377;&#26469;&#33258;&#21313;&#22810;&#20010;&#22269;&#23478;&#21644;&#22320;&#21306;&#25968;&#19975;&#21517;&#30331;&#35760;&#20250;&#21592;&#65292;&#20250;&#21592;&#26469;&#33258;&#20197;&#20844;&#23433;&#37096;&#12289;&#24037;&#20449;&#37096;&#12289;&#28165;&#21326;&#22823;&#23398;&#12289;&#21271;&#20140;&#22823;&#23398;&#12289;&#21271;&#20140;&#37038;&#30005;&#22823;&#23398;&#12289;&#20013;&#22269;&#20154;&#27665;&#38134;&#34892;&#12289;&#20013;&#31185;&#38498;&#12289;&#20013;&#37329;&#12289;&#21326;&#20026;&#12289;BAT&#12289;&#35895;&#27468;&#12289;&#24494;&#36719;&#31561;&#20026;&#20195;&#34920;&#30340;&#25919;&#24220;&#26426;&#20851;&#12289;&#31185;&#30740;&#21333;&#20301;&#12289;&#37329;&#34701;&#26426;&#26500;&#20197;&#21450;&#28023;&#20869;&#22806;&#30693;&#21517;&#20844;&#21496;&#65292;&#20840;&#24179;&#21488;&#36817;20&#19975;&#24320;&#21457;&#32773;&#20851;&#27880;&#12290;</span>
    </p>
    <p style='max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 17px;letter-spacing: 0.544px;white-space: normal;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;'>
        <span style="max-width: 100%;color: rgb(122, 68, 66);box-sizing: border-box !important;overflow-wrap: break-word !important;"><strong
                style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
                style="max-width: 100%;font-family: Helvetica, Arial, sans-serif;letter-spacing: 1px;font-size: 14px;box-sizing: border-box !important;overflow-wrap: break-word !important;">Python&#20013;&#25991;&#31038;&#21306;&#20844;&#20247;&#21495;&#24213;&#37096;&#22238;&#22797;&#8220;&#20869;&#25512;&#8221;</span></strong></span>
    </p>
    <p style='max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 17px;letter-spacing: 0.544px;white-space: normal;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;'>
        <span style="max-width: 100%;color: rgb(122, 68, 66);box-sizing: border-box !important;overflow-wrap: break-word !important;"><strong
                style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
                style="max-width: 100%;font-family: Helvetica, Arial, sans-serif;letter-spacing: 1px;font-size: 14px;box-sizing: border-box !important;overflow-wrap: break-word !important;">&#33719;&#21462;&#19968;&#21608;&#20869;&#25512;&#25216;&#26415;&#32844;&#20301;&#28165;&#21333;</span></strong></span>
    </p>
    <p style='max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 17px;letter-spacing: 0.544px;text-align: justify;white-space: normal;caret-color: rgb(51, 51, 51);box-sizing: border-box !important;overflow-wrap: break-word !important;'>
        <img class="" data-backh="279" data-backw="558" data-copyright="0" data-ratio="0.5" data-s="300,640"
             data-src="https://mmbiz.qpic.cn/mmbiz_jpg/5mt0ewv9OS1ib7x4bEdahIGSUQ57ic7KXylauibeGpia9ugJsXNtiaOTusB7zW3F9MUR4aJ51VicqFpYjVISSLfiaNn5Q/640?wx_fmt=jpeg"
             data-type="jpeg" data-w="1240"
             style="box-sizing: border-box !important;overflow-wrap: break-word !important;visibility: visible !important;width: 652px !important;"
             width="auto"></p>
    <p style='max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;font-size: 17px;letter-spacing: 0.544px;text-align: justify;white-space: normal;caret-color: rgb(51, 51, 51);box-sizing: border-box !important;overflow-wrap: break-word !important;'>
        <span style="font-size: 14px;max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><strong
                style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><strong
                style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">&#9660;&#160;</strong></strong><span
                style="max-width: 100%;"><strong
                style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">&#28857;&#20987;&#19979;&#26041;</strong></span><span
                style="max-width: 100%;color: rgb(255, 255, 255);background-color: rgb(136, 136, 136);"><strong
                style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">&#38405;&#35835;&#21407;&#25991;</strong></span></span><span
            style="max-width: 100%;font-size: 14px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><strong
            style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">&#65292;</strong><span
            style='max-width: 100%;color: rgb(51, 51, 51);font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;text-align: justify;caret-color: rgb(51, 51, 51);background-color: rgb(255, 255, 255);'><strong
            style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">&#20813;&#36153;&#25104;&#20026;</strong></span><span
            style='max-width: 100%;font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;letter-spacing: 0.544px;text-align: justify;caret-color: rgb(51, 51, 51);color: rgb(255, 255, 255);background-color: rgb(120, 172, 254);'><strong
            style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">&#31038;&#21306;&#20250;&#21592;</strong></span></span><span
            style="font-size: 14px;max-width: 100%;color: rgb(217, 33, 66);box-sizing: border-box !important;overflow-wrap: break-word !important;"><strong
            style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></strong></span>
    </p>
</div>
                